package sp.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sp.dao.user.PermissionDao;
import sp.pojo.Function;
import sp.service.PermissionService;

@Service("permissionService")
public class PermissionServiceImpl implements PermissionService{
	
	@Autowired
	private PermissionDao permissionDao;

	@Override
	public Set<String> findPermissions(List<Integer> permissionId) throws Exception {
		return permissionDao.findPermissions(permissionId);
	}

	@Override
	public List<Function> findMenus(List<String> permissions) throws Exception {
		return permissionDao.findMenus(permissions);
	}
	
	

}
